package com.itboy.mall.pms.productattrvalue.bo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.*;


/**
 * spu属性值编辑对象 mall_product_attr_value
 *
 * @author itboy
 * @date 2021-08-07
 */
@Data
@ApiModel("spu属性值编辑对象")
public class MallProductAttrValueEditBo {


    /**
     * id
     */
    @ApiModelProperty("id")
	@JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 商品id
     */
    @ApiModelProperty("商品id")
    @NotNull(message = "商品id不能为空")
	@JsonSerialize(using = ToStringSerializer.class)
    private Long spuId;

    /**
     * 属性id
     */
    @ApiModelProperty("属性id")
    @NotNull(message = "属性id不能为空")
	@JsonSerialize(using = ToStringSerializer.class)
    private Long attrId;

    /**
     * 属性名
     */
    @ApiModelProperty("属性名")
    private String attrName;

    /**
     * 属性值
     */
    @ApiModelProperty("属性值")
    private String attrValue;

    /**
     * 顺序
     */
    @ApiModelProperty("顺序")
    private Long attrSort;

    /**
     * 快速展示【是否展示在介绍上；0-否 1-是】
     */
    @ApiModelProperty("快速展示【是否展示在介绍上；0-否 1-是】")
    private Integer quickShow;
}
